/*
 * JSON001Transport.java
 *
 * Created on 6 październik 2007, 20:31
 *
 */

package kosciak.blip4j.api.json001;

import kosciak.blip4j.Transport;

import org.json.JSONObject;
import org.json.JSONException;

/**
 *
 * @author Wojtek 'KosciaK' Pietrzok
 */
class JSON001Transport extends Transport{
    
    
    /**
     * Creates a new instance of JSON001Transport
     */
    private JSON001Transport(int id, String name){
        super(id, name);
    }
    
    static Transport getInstance(JSONObject obj) throws JSONException{
        return new JSON001Transport(obj.getInt("id"), obj.getString("name"));
    }

}
